#include "gelsyr_ui.h" 




int main(int argc, char *argv[]){
    
    display_menue display;

    uint8_t state;
    if(argc == 3 || argc == 1){
    }else{
       printf("Please type -c and work or home!\n");
       return 0;
    }
    if((argc > 1 && argc < 3) || (argc <=1 || argc > 3)){
       printf("Please type -c and work or home!\n");
       return 0;
    }
    if(display_init(&display, &state) <= -1){
        printf("Could not load images or fonts\n");
	return -1;
    }

    if(!strcmp("home", argv[2])){
       // UI -s home
       state_home(&display, &state);
    }else{
       if(!strcmp("work", argv[2])){
          // UI -s work
          state_work(&display, &state);
       }else{
          printf("Please type work or home!\n");
	  return -1;
       }
    }
    display_clean(&display, &state);
   return 0;
}
